<?php
class BLPersonal {
    private $dni;
    private $nombre;
    private $apellido;
    
    public function __construct($dni, $nombre, $apellido){
        $this->dni = $dni;
        $this->nombre = $nombre;
        $this->apellido = $apellido;
    }
    
    public function imprimirDatos(){
        echo "Su nombre es: " . $this->nombre;
        echo "<br/>";
        echo "Su apellido es: " . $this->apellido;
        echo "<br/>";
        echo "Su dni es: " . $this->dni;
    }
}

$obj = new BLPERSONAL(43674507,'Giancarlo','Barreto');
$obj->imprimirDatos();
?>
